package _08_Break;

public class Break_02 {

	public static void main(String[] args) {
		// break可以终止到break后边标号的位置 ,outerFor可以是任意的标号
		outerFor: for (int i = 0; i < 5; i++) {
			for (int j = 0; j < 5; j++) {
				if (j == 3) {
					break outerFor;
				}
				System.out.println(j + " ");
			}
			// 换行
			System.out.println();
		}
	}
}